package com.alinesno.cloud.initializr.starter.cicd.deploy.k8s.bean;

import java.util.List;
import java.util.Map;

import com.alinesno.cloud.initializr.starter.enums.LanguageEnum;
import com.alinesno.cloud.initializr.starter.enums.SceneEnum;

/**
 * 部署实体对象
 * 
 * @author WeiXiaoJin
 * @date 2021年6月25日 下午9:19:26
 */
public class DeploymentBean {
	

	private String namespace;
	private String name;
	private int replicas = 1;
	private String image;
	private String pullSecret;

	private int containerPort;

	private String language = LanguageEnum.JAVA.name(); // 语言类型
	private String scene = SceneEnum.NORMAL.name();

	private String resourceLimitCpu;
	private String resourceLimitMem;

	private String resourceRequestCpu;
	private String resourceRequestMem;

	List<Map<String, String>> envParams;

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getScene() {
		return scene;
	}

	public void setScene(String scene) {
		this.scene = scene;
	}

	public String getPullSecret() {
		return pullSecret;
	}

	public void setPullSecret(String pullSecret) {
		this.pullSecret = pullSecret;
	}

	public int getContainerPort() {
		return containerPort;
	}

	public void setContainerPort(int containerPort) {
		this.containerPort = containerPort;
	}

	public int getReplicas() {
		return replicas;
	}

	public void setReplicas(int replicas) {
		this.replicas = replicas;
	}

	public String getNamespace() {
		return namespace;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getResourceLimitCpu() {
		return resourceLimitCpu;
	}

	public void setResourceLimitCpu(String resourceLimitCpu) {
		this.resourceLimitCpu = resourceLimitCpu;
	}

	public String getResourceLimitMem() {
		return resourceLimitMem;
	}

	public void setResourceLimitMem(String resourceLimitMem) {
		this.resourceLimitMem = resourceLimitMem;
	}

	public String getResourceRequestCpu() {
		return resourceRequestCpu;
	}

	public void setResourceRequestCpu(String resourceRequestCpu) {
		this.resourceRequestCpu = resourceRequestCpu;
	}

	public String getResourceRequestMem() {
		return resourceRequestMem;
	}

	public void setResourceRequestMem(String resourceRequestMem) {
		this.resourceRequestMem = resourceRequestMem;
	}

	public List<Map<String, String>> getEnvParams() {
		return envParams;
	}

	public void setEnvParams(List<Map<String, String>> envParams) {
		this.envParams = envParams;
	}

}
